import { ref } from 'vue'
import PageContent from '@/components/page-content'
export const usePageSearch = (): any[] => {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  const handleReset = () => {
    // console.log('主页重置')
    pageContentRef.value?.getData()
  }
  const handleQuery = (queryInfo: any) => {
    // console.log('主页搜索', queryInfo)
    pageContentRef.value?.getData(queryInfo)
  }
  return [pageContentRef, handleQuery, handleReset]
}
